home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / APW.ORCA.Cmds / Gregs.APW.Utils / Documentation / Print < prev    next >
Encoding:
Text File  |  1990-07-19  |  4.0 KB  |  85 lines  |  [TEXT/pdos]

  1. Print - text file printer
  2. PR [-L] [-H] [-M#] [-N#] listfile [[-L] [-H] [-M#] [-N#] listfile...]
  3.  
  4. Syntax      Print [options] listfile [[options] listfile...]
  5.  
  6. Description Print will print the specified files onto the currently selected
  7.             printer.  The files may be specified as either full or partial
  8.             pathnames, and may contain APW wildcard characters.  The program
  9.             does NOT do any filetype checking.  If you attempt to print an OBJ
  10.             or S16 file (or anything that doesn't contain ASCII text), you'll
  11.             probably be awarded with a lot of garbage being printed.  Use
  12.             caution!
  13.  
  14.             Command line switches may be used to modify the output to the
  15.             printer, and are described below.  The program will use the
  16.             printercolumns and printerinit shell variables when accessing the
  17.             printer.
  18.  
  19. Input       Print does not read standard input.  All files to be printed must
  20.             be specified on the command line.
  21.  
  22. Output      Print internally redirects standard output to the .PRINTER device.
  23.  
  24. Diagnostics Errors and warnings are written to diagnostic output.
  25.  
  26. Options     The following options may be specified in any order on the command
  27.             line.  Options remain in effect until changed by another occurrance
  28.             of the option on the command line.  This can occur between filename
  29.             specifications in case you wish to print one file using one format
  30.             and print subsequent files using a different format.
  31.  
  32.             You can specify any combination of pathnames and switches, and as
  33.             many as the length of the command line will allow.  A space must
  34.             separate every parameter specified on the command line.  If there
  35.             are no flags preceeding a pathname, the values of the associated
  36.             program variables will maintain their previous values, or the
  37.             default if no flags were specified at all.
  38.  
  39.             -l      This switch toggles the setting of a program variable that
  40.                     decides whether or not line numbers will be printed on each
  41.                     line of the file.  By default, this switch is set to OFF.
  42.  
  43.             -h      This switch toggles the setting of a program variable that
  44.                     decides whether or not a heading is printed at the
  45.                     beginning of each page.  The heading consists of the
  46.                     filename (minus any preceeding pathname), the current date,
  47.                     time, and page number.  The default setting of this switch
  48.                     is ON.
  49.  
  50.             -m#     This allows you to specify the number of spaces to print at
  51.                     the beginning of each line so that you can leave some space
  52.                     for three-hole punching.  No spaces are allowed between the
  53.                     'm' and the number.  The program starts with this variable
  54.                     set to 0.
  55.  
  56.             -n#     This switch allows you to specify the number of lines to
  57.                     print per page.  No spaces are allowed between the 'n' and
  58.                     the number.  The program starts out with this variable set
  59.                     to 60.
  60.  
  61. Examples:
  62.  
  63.             print print.cc
  64.  
  65.             This will print the file "print.cc" to the printer, using the
  66.             default program variable settings (heading-Yes, no left margin, 60
  67.             lines per page, no line numbers).
  68.  
  69.             print -l print.cc
  70.  
  71.             Same as above, but WILL preceed each line of the file with a 5
  72.             digit line number.
  73.  
  74.             print -l print.cc -h -l -m6 print.help
  75.  
  76.             Same as above, but in addition, will print the file "print.help"
  77.             with no line numbers (the -l preceeding print.help will toggle line
  78.             numbers back OFF), and with no page heading.  A binding margin of 6
  79.             spaces is also specified.
  80.  
  81.             print 3/=.lst
  82.  
  83.             Will list all files in the APW work directory (3/, normally your
  84.             /RAM disk) that end in the characters ".lst".
  85.